<?php
return array(
	//'配置项'=>'配置值'
    'URL_MODEL' =>0,
    'URL_PATHINFO_DEPR' => '-',
    'URL_HTML_SUFFIX' => '.html',
    'REPLACE_NUMS' => '1',
    'URL_ROUTER_ON' => true,
    'URL_ROUTE_RULES' => array( //定义路由规则

        //新楼
        '/^loupan$/' => 'House/index',
        //有地铁
        '/^loupan_([a-zA-Z]+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_([\\x80-\\xffa-zA-Z0-9]+)$/' => 'House/index?alias=:1&price=:2&tags=:3&roomType=:4&houseType=:5&houseStatus=:6&renovationType=:7&floor=:8&sort=:9&group=:10&metro=:11&key=:12',
        '/^loupan_([a-zA-Z]+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_([\\x80-\\xffa-zA-Z0-9]+)_p(\d+)$/' => 'House/index?alias=:1&price=:2&tags=:3&roomType=:4&houseType=:5&houseStatus=:6&renovationType=:7&floor=:8&sort=:9&group=:10&metro=:11&key=:12&p=:13',
        '/^loupan\/([a-zA-Z]+)$/' => 'House/index?alias=:1',
        '/^loupan_([a-zA-Z]+)_p(\d+)$/' => 'House/index?alias=:1&p=:2',
        '/^loupan_tags_(\d+)$/' => 'House/index?tags=:1',
        '/^loupan_tags_(\d+)_p(\d+)$/' => 'House/index?tags=:1&p=:2',

        '/^loupan_price_(\d+)$/' => 'House/index?price=:1',
        '/^loupan_price_(\d+)_p(\d+)$/' => 'House/index?price=:1&p=:2',

        '/^loupan_type_(\d+)$/' => 'House/index?houseType=:1',
        '/^loupan_type_(\d+)_p(\d+)$/' => 'House/index?houseType=:1&p=:2',

        '/^loupan_room_(\d+)$/' => 'House/index?roomType=:1',
        '/^loupan_room_(\d+)_p(\d+)$/' => 'House/index?roomType=:1&p=:2',

        '/^loupan_ajax_line$/' => 'House/line',

        '/^loupan\/(\d+)$/' => 'House/detail?id=:1',
        '/^loupan_ziliao_(\d+)$/' => 'House/info?hid=:1',
        '/^loupan_huxing_(\d+)$/' => 'House/type?hid=:1',
        '/^loupan_huxing_(\d+)_cate_(\d+)$/' => 'House/type?hid=:1&cate=:2',
        '/^loupan_huxing_(\d+)_cate_(\d+)_p(\d+)$/' => 'House/type?hid=:1&cate=:2&p=:3',
        '/^loupan_huxing_(\d+)_show_(\d+)$/' => 'House/typeShow?hid=:1&id=:2',
        '/^loupan_tupian_(\d+)$/' => 'House/pic?hid=:1',
        '/^loupan_tupian_(\d+)_cate_(\d+)$/' => 'House/pic?hid=:1&cate=:2',
        '/^loupan_tupian_(\d+)_cate_(\d+)_p(\d+)$/' => 'House/pic?hid=:1&cate=:2&p=:3',
        '/^loupan_jiage_(\d+)$/' => 'House/price?hid=:1',
        '/^loupan_dongtai_(\d+)$/' => 'House/news?hid=:1',
        '/^loupan_dongtai_(\d+)_p(\d+)$/' => 'House/news?hid=:1&p=:2',
        '/^loupan_dongtai_(\d+)_cate_(\d+)$/' => 'House/news?hid=:1&cate=:2',
        '/^loupan_dongtai_(\d+)_cate_(\d+)_p(\d+)$/' => 'House/news?hid=:1&cate=:2&p=:3',
        '/^loupan_wenda_(\d+)$/' => 'House/ask?hid=:1',
        '/^loupan_wenda_(\d+)_p(\d+)$/' => 'House/ask?hid=:1&p=:2',
        //二手房
        '/^ershoufang$/' => 'Used/index',
        '/^esf\/(\d+)$/' => 'Used/detail?id=:1',
        '/^esf\/([a-zA-Z]+)$/' => 'Used/index?alias=:1',
        '/^esf_([a-zA-Z]+)_p(\d+)$/' => 'Used/index?alias=:1&p=:2',
		'/^esf_zongjia_(\d+)$/' => 'Used/index?totalPrice=:1',
        '/^esf_zongjia_(\d+)_p(\d+)$/' => 'Used/index?totalPrice=:1&p=:2',
        //有线路的
        '/^esf_([a-zA-Z]+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_([\\x80-\\xffa-zA-Z0-9]+)$/' => 'Used/index?alias=:1&totalPrice=:2&area=:3&orientations=:4&usedType=:5&mating=:6&renovationType=:7&room=:8&hall=:9&kitchen=:10&toilet=:11&balcony=:12&other=:13&sort=:14&metro=:15&key=:16',
        '/^esf_([a-zA-Z]+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_([\\x80-\\xffa-zA-Z0-9]+)_p(\d+)$/' => 'Used/index?alias=:1&totalPrice=:2&area=:3&orientations=:4&usedType=:5&mating=:6&renovationType=:7&room=:8&hall=:9&kitchen=:10&toilet=:11&balcony=:12&other=:13&sort=:14&metro=:15&key=:16&p=:17',

        //出租
        '/^chuzu$/' => 'Rental/index',
        '/^chuzu\/(\d+)$/' => 'Rental/detail?id=:1',
        '/^chuzu\/([a-zA-Z]+)$/' => 'Rental/index?alias=:1',
        '/^chuzu_([a-zA-Z]+)_p(\d+)$/' => 'Rental/index?alias=:1&p=:2',
        '/^chuzu_so_([\\x80-\\xffa-zA-Z0-9]+)$/' => "Rental/index?key=:1",
        '/^chuzu_so_([\\x80-\\xffa-zA-Z0-9]+)_p(\d+)$/' => "Rental/index?key=:1&p=:2",
        '/^xiaoqu_price_(\d+)$/' => 'Rental/index?price=:1',
        '/^xiaoqu_price_(\d+)_p(\d+)$/' => 'Rental/index?price=:1&p=:2',
        //有线路的
         '/^chuzu_([a-zA-Z]+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_([\\x80-\\xffa-zA-Z0-9]+)$/' => 'Rental/index?alias=:1&price=:2&area=:3&orientations=:4&rentalMode=:5&houseType=:6&mating=:7&renovationType=:8&room=:9&hall=:10&kitchen=:11&toilet=:12&balcony=:13&payType=:14&other=:15&sort=:16&metro=:17&key=:18',
        '/^chuzu_([a-zA-Z]+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_([\\x80-\\xffa-zA-Z0-9]+)_p(\d+)$/' => 'Rental/index?alias=:1&price=:2&area=:3&orientations=:4&rentalMode=:5&houseType=:6&mating=:7&renovationType=:8&room=:9&hall=:10&kitchen=:11&toilet=:12&balcony=:13&payType=:14&other=:15&sort=:16&metro=:17&key=:18&p=:19',

        //小区
         '/^xiaoqu$/' => 'Estate/index',
         '/^xiaoqu\/([a-zA-Z]+)$/' => 'Estate/index?alias=:1',
         '/^xiaoqu_([a-zA-Z]+)_p(\d+)$/' => 'Estate/index?alias=:1&p=:2',
         '/^xiaoqu_type_(\d+)$/' => 'Estate/index?houseType=:1',
         '/^xiaoqu_type_(\d+)_p(\d+)$/' => 'Estate/index?houseType=:1&p=:2',

        //有地铁
        '/^xiaoqu_([a-zA-Z]+)_(\d+)_(\d+)_(\d+)_(\d+)_([\\x80-\\xffa-zA-Z0-9]+)$/' => 'Estate/index?alias=:1&houseType=:2&years=:3&sort=:4&metro=:5&key=:7',
        '/^xiaoqu_([a-zA-Z]+)_(\d+)_(\d+)_(\d+)_(\d+)_([\\x80-\\xffa-zA-Z0-9]+)_p(\d+)$/' => 'Estate/index?alias=:1&houseType=:2&years=:3&sort=:4&metro=:5&key=:7&p=:8',
        '/^xiaoqu\/(\d+)$/' => 'Estate/detail?id=:1',
        '/^xiaoqu_esf_(\d+)$/' => 'Estate/used?id=:1',
        '/^xiaoqu_esf_(\d+)_p(\d+)$/' => 'Estate/used?id=:1&p=:2',
        '/^xiaoqu_esf_(\d+)_room_(\d+)$/' => 'Estate/used?id=:1&room=:2',
        '/^xiaoqu_esf_(\d+)_room_(\d+)_p(\d+)$/' => 'Estate/used?id=:1&room=:2&p=:3',
        '/^xiaoqu_info_(\d+)$/' => 'Estate/info?id=:1',
        '/^xiaoqu_tupian_(\d+)$/' => 'Estate/pic?id=:1',
        '/^xiaoqu_tupian_(\d+)_p(\d+)$/' => 'Estate/pic?id=:1&p=:2',
        '/^xiaoqu_chuzu_(\d+)$/' => 'Estate/rental?id=:1',
        '/^xiaoqu_chuzu_(\d+)_p(\d+)$/' => 'Estate/rental?id=:1&p=:2',
        '/^xiaoqu_chuzu_(\d+)_room_(\d+)$/' => 'Estate/rental?id=:1&room=:2',
        '/^xiaoqu_chuzu_(\d+)_room_(\d+)_p(\d+)$/' => 'Estate/rental?id=:1&room=:2&p=:3',
        '/^xq_esf_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)$/' => 'Estate/used?id=:1&totalPrice=:2&area=:3&orientations=:4&mating=:5&renovationType=:6&room=:7&hall=:8&kitchen=:9&toilet=:10&balcony=:11&other=:12&sort=:13',
        '/^xq_esf_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_p(\d+)$/' => 'Estate/used?id=:1&totalPrice=:2&area=:3&orientations=:4&mating=:5&renovationType=:6&room=:7&hall=:8&kitchen=:9&toilet=:10&balcony=:11&other=:12&sort=:13&p=:14',
        '/^xq_cz_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)$/' => 'Estate/rental?id=:1&price=:2&area=:3&orientations=:4&rentalMode=:5&mating=:6&renovationType=:7&room=:8&hall=:9&kitchen=:10&toilet=:11&balcony=:12&payType=:13&other=:14&sort=:15',
        '/^xq_cz_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_(\d+)_p(\d+)$/' => 'Estate/rental?id=:1&price=:2&area=:3&orientations=:4&rentalMode=:5&mating=:6&renovationType=:7&room=:8&hall=:9&kitchen=:10&toilet=:11&balcony=:12&payType=:13&other=:14&sort=:15&p=16',

        //Store
        '/^store$/' => 'Store/index',
        '/^store\/(\d+)$/' => 'Store/index?uid=:1',
        '/^store_esf_(\d+)$/' => 'StoreUsed/index?uid=:1',
        '/^store_esf_(\d+)_p(\d+)$/' => 'StoreUsed/index?uid=:1&p=:2',
        '/^store_chuzu_(\d+)$/' => 'StoreRental/index?uid=:1',
        '/^store_chuzu_(\d+)_p(\d+)$/' => 'StoreRental/index?uid=:1&p=:2',
        '/^store_wenda_(\d+)$/' => 'StoreAsk/index?uid=:1',
        '/^store_wenda_(\d+)_p(\d+)$/' => 'StoreAsk/index?uid=:1&p=:2',
        '/^store_zixun_(\d+)$/' => 'StoreNews/index?uid=:1',
        '/^store_zixun_(\d+)_p(\d+)$/' => 'StoreNews/index?uid=:1&p=:2',

        //Map
        '/^map$/' => 'Map/index',
        '/^map_([a-zA-Z]+)$/' => 'Map/index?type=:1',
        '/^map_([a-zA-Z]+)_(\d+)$/' => 'Map/index?type=:1&hid=:2',
        //Special
        '/^zhuanti$/' => 'Special/index',
        '/^zhuanti\/p(\d+)$/' => 'Special/index?p=:1',
        '/^zhuanti\/(\d+)$/' => 'Special/detail?id=:1',

        //Activity
        '/^huodong$/' => 'Activity/index',
        '/^huodong\/p(\d+)$/' => 'Activity/index?p=:1',
        '/^huodong\/(\d+)$/' => 'Activity/detail?id=:1',
        '/^huodong\/([a-zA-Z]+)$/' => 'Activity/lists?alias=:1',
        '/^huodong_([a-zA-Z]+)_p(\d+)$/' => 'Activity/lists?alias=:1&p=:2',

        //Buying
        '/^tuangou$/' => 'Buying/index',
        '/^tuangou\/([a-zA-Z]+)$/' => 'Buying/index?alias=:1',
        '/^tuangou_([a-zA-Z]+)_p(\d+)$/' => 'Buying/index?alias=:1&p=:2',
        '/^tuangou\/(\d+)$/' => 'Buying/detail?id=:1',
        '/^tuangou_type_([a-zA-Z]+)$/' => 'Buying/index?type=:1',
        '/^tuangou_type_([a-zA-Z]+)_p(\d+)$/' => 'Buying/index?type=:1&p=:2',

        //news
        '/^zixun$/' => 'News/index',
        '/^zixun\/p(\d+)$/' => 'News/index?p=:1',
        '/^zixun\/([a-zA-Z]+)$/' => 'News/lists?alias=:1',
        '/^zixun_([a-zA-Z]+)_p(\d+)$/' => 'News/lists?alias=:1&p=:2',
        '/^zixun\/(\d+)$/' => 'News/detail?id=:1',

        //ask
        '/^wenda_add$/' => 'Ask/add',
        '/^wenda$/' => 'Ask/index',
        '/^wenda_so_([\\x80-\\xffa-zA-Z0-9]+)$/' => "Ask/index?key=:1",
        '/^wenda_so_([\\x80-\\xffa-zA-Z0-9]+)_p(\d+)$/' => "Ask/index?key=:1&p=:2",
        '/^wenda\/p(\d+)$/' => 'Ask/index?p=:1',
        '/^wenda\/([a-zA-Z]+)$/' => 'Ask/lists?alias=:1',
        '/^wenda_([a-zA-Z]+)_p(\d+)$/' => 'Ask/lists?alias=:1&p=:2',
        '/^wenda\/(\d+)$/' => 'Ask/detail?id=:1',
        '/^wenda_(\d+)_p(\d+)$/' => 'Ask/detail?id=:1&p=:2',
        '/^wenda\/([a-zA-Z]+)_(\d+)$/' => 'Ask/lists?alias=:1&solve=:2',
        '/^wenda\/([a-zA-Z]+)_(\d+)_p(\d+)$/' => 'Ask/lists?alias=:1&solve=:2&p=:3',
        '/^wenda_problem$/' => 'Ask/problem',
        '/^wenda_problem_p(\d+)$/' => 'Ask/problem?p=:1',
        '/^wenda_answer$/' => 'Ask/answer',
        '/^wenda_answer_p(\d+)$/' => 'Ask/answer?p=:1',

        //map
        '/^map\/([a-zA-Z]+)$/' => 'Map/index?type=:1',
        '/^map\/(\d+)\/([a-zA-Z]+)$/' => 'Api/map?id=:1&model=:2',
        //one
        '/^one\/([a-zA-Z]+)$/' => 'One/index?alias=:1',

        //Ajax
        '/^fangcms_ajax_addAsk$/' => 'Ajax/addAsk',
        '/^fangcms_ajax_addAnswer$/' => 'Ajax/addAnswer',
        '/^fangcms_ajax_topStep$/' => 'Ajax/topStep',
        '/^fangcms_ajax_followUser$/' => 'Ajax/followUser',
        '/^fangcms_ajax_addPhone$/' => 'Ajax/addPhone',
        '/^fangcms_ajax_getProperty$/' => 'Ajax/getProperty',
        '/^fangcms_ajax_collection$/' => 'Ajax/collection',
        '/^fangcms_ajax_italy$/' => 'Ajax/italy',
        '/^fangcms_ajax_chooseRoom$/' => 'Ajax/chooseRoom',
        '/^fangcms_ajax_report_(\d+)_([a-zA-Z]+)$/' => 'Ajax/report?id=:1&model=:2',
        '/^fangcms_ajax_orderHouse$/' => 'Ajax/orderHouse',
        '/^fangcms_ajax_orderUsed$/' => 'Ajax/orderUsed',
        '/^fangcms_ajax_orderRental$/' => 'Ajax/orderRental',
        '/^fangcms_ajax_rentalTel_(\d+)$/' => 'Ajax/rentalTel?id=:1',
        '/^fangcms_ajax_rentalBook_(\d+)$/' => 'Ajax/rentalBook?id=:1',
        '/^fangcms_ajax_usedTel_(\d+)$/' => 'Ajax/usedTel?id=:1',
        '/^fangcms_ajax_buying_(\d+)$/' => 'Ajax/buying?id=:1',
        '/^fangcms_ajax_houseTel_(\d+)$/' => 'Ajax/houseTel?id=:1',
        '/^fangcms_ajax_housePrice_(\d+)$/' => 'Ajax/housePrice?id=:1',
        '/^fangcms_ajax_houseLook_(\d+)$/' => 'Ajax/houseLook?id=:1',
        '/^fangcms_ajax_houseTypeRoom$/' => 'Ajax/houseTypeRoom',

        '/^fangcms_ajax_usedBook_(\d+)$/' => 'Ajax/usedBook?id=:1',

        '/^fangcms_ajax_getHouseList$/' => 'Ajax/getHouseList',
        '/^fangcms_ajax_getUsedRentalList$/' => 'Ajax/getUsedRentalList',
        '/^fangcms_ajax_getHouseCate$/' => 'Ajax/getHouseCate',
        '/^fangcms_ajax_getAreaCate$/' => 'Ajax/getAreaCate',
        '/^fangcms_ajax_getPosition$/' => 'Ajax/getPosition',

        //api
    ),
    /* 调试配置 */
    'SHOW_PAGE_TRACE' => false,
    'URL_CASE_INSENSITIVE'=>false,	//url不区分大小写
    /* 后台错误页面模板 */
    'TMPL_ACTION_ERROR'     =>  MODULE_PATH.'View/Public/error.html', // 默认错误跳转对应的模板文件
    'TMPL_ACTION_SUCCESS'   =>  MODULE_PATH.'View/Public/success.html', // 默认成功跳转对应的模板文件
    'TMPL_EXCEPTION_FILE'   =>  MODULE_PATH.'View/Public/exception.html',// 异常页面的模板文件

    /* 模板相关配置 */
    'TMPL_PARSE_STRING' => array(
        '__WEB__' =>'http://hj.com',
        '__IMG__'    => __ROOT__ . '/Public/' . MODULE_NAME . '/images',
        '__CSS__'    => __ROOT__ . '/Public/' . MODULE_NAME . '/css',
        '__JS__'     => __ROOT__ . '/Public/' . MODULE_NAME . '/js',
        '__GROUP__'  => trim(APP_PATH,'.').'Home/View/Group',
        '__S__' =>__ROOT__ .'/Public/static'
    ),
    'LANG_SWITCH_ON'     =>     true,    //开启语言包功能
    'LANG_AUTO_DETECT'     =>     true, // 自动侦测语言
    'DEFAULT_LANG'         =>     'zh-cn', // 默认语言
    'LANG_LIST'            =>    'en-us,zh-cn,zh-tw', //必须写可允许的语言列表
    'VAR_LANGUAGE'     => 'l', // 默认语言切换变量
);